﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using InsuranceCompany.Core.Domain.Objects;

namespace InsuranceCompany.Core.Domain.InsuranceArea
{
    public class Employee :Person
    {
        public string Position { get; set; }

        public string CompanyName { get; set; }

        public Employee() :base()
        {
            Position = "expert";
            CompanyName = "Insurance company";
        }

        public Employee(Employee e) :base(e)
        {
            Position = e.Position;
            CompanyName = e.CompanyName;
        }
        public Employee(Person p, string position, string companyName)
            : base(p.Name, p.Surname, p.Gender, p.Patronymic, p.Phone, p.Email)
        {
            Position = position;
            CompanyName = companyName;
        }
    }
}
